package com.wgy.day31字节流.文件复制练习;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Demo02FileCopy {
    public static void main(String[] args) {
        try( FileInputStream fis=new FileInputStream("D:\\小云\\abc\\b\\b.txt");
             FileOutputStream fos =new FileOutputStream("D:\\小云\\abc\\b.txt")){
            int len=0;
            while((len=fis.read())!=-1){
                fos.write(len);
            }

        }catch (IOException e ){
            System.out.println(e);
        }

    }
}
